package com.webwork.project.system.dataobject;

import com.webwork.common.dataobject.Bool;

public class SysMenu {
	
	/**
	 * 唯一id
	 */
	private int id;
	
	/**
	 * 菜单代码
	 */
	private String menuCode;
	
	/**
	 * 菜单名称
	 */
	private String menuName;
	
	/**
	 * 菜单链接
	 */
	private String menuUrl;
	
	/**
	 * 菜单顺序
	 */
	private int menuOrder;
	
	/**
	 * 菜单状态
	 */
	private Bool menuStatus = Bool.NULL;
	
	/**
	 * 父菜单ID
	 */
	private int parentId;
	
	/**
	 * 菜单图标
	 */
	private String menuIcon;
	
	/**
	 * 菜单备注
	 */
	private String comment;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMenuCode() {
		return menuCode;
	}

	public void setMenuCode(String menuCode) {
		this.menuCode = menuCode;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public int getMenuOrder() {
		return menuOrder;
	}

	public void setMenuOrder(int menuOrder) {
		this.menuOrder = menuOrder;
	}

	public Bool getMenuStatus() {
		return menuStatus;
	}

	public void setMenuStatus(Bool menuStatus) {
		this.menuStatus = menuStatus;
	}
	
	public void setMenuStatus(Integer menuStatus) {
		this.menuStatus = Bool.fromValue(menuStatus);
	}

	public int getParentId() {
		return parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public String getMenuIcon() {
		return menuIcon;
	}

	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
